﻿// <com.woyouqiu.Copyright>
// --------------------------------------------------------------
// <copyright>上海有求网络科技有限公司 2015</copyright>
// <Solution>MyCompany.MyProject</Solution>
// <Project>MyCompany.MyProject.Application</Project>
// <FileName>IShoppingCartAppService.cs</FileName>
// <CreateTime>2017-04-23 23:06</CreateTime>
// <Author>何苗</Author>
// <Email>hemiao@woyouqiu.com</Email>
// <log date="2017-04-23 23:06" version="00001">创建</log>
// --------------------------------------------------------------
// </com.woyouqiu.Copyright>

using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using Vecen.BangChuang.BangChuang.Mall.Dtos;

namespace Vecen.BangChuang.BangChuang.Mall {
    /// <summary>
    /// 购物车
    /// </summary>

    public interface IShoppingCartAppService: IApplicationService {


        /// <summary>
        /// 获得购物车内容
        /// </summary>
        /// <returns></returns>
        Task<ListResultDto<ShoppingCartOutDto>> GetShoppingCartAsync();

        /// <summary>
        /// 添加商品到购物车
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task AddToCartAsync(AddToCartRequestDto input);

        /// <summary>
        /// 从购物车删减商品
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task DeleteAsync(DelFromCartRequestDto input);
    }
}